package modele;

import java.util.Date;

import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlTransient;

@XmlRootElement
public class DernierePosition extends Position {

	private Date time;

	@XmlTransient
	private User user;

	public DernierePosition() {
		super();
	}

	public DernierePosition(double lattitude, double longitude, User user) {
		super(lattitude, longitude);
		this.user = user;
	}

	public Date getTime() {
		return time;
	}

	@XmlElement
	public void setTime(Date time) {
		this.time = time;
	}

	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}

}
